package com.ruoyi.project.datum.style.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 描述：产品风格实体类
 * 时间：2020/5/18
 * 作者：WangHaiDong
 */
public class Style extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /**
     * 产品风格ID
     */
    private Integer styleId;

    /**
     * 产品风格名称
     */
    @NotBlank(message = "产品名称不能为空")
    @Size(min = 0, max = 50, message = "产品名称不能超过50个字符")
    private String styleName;

    /**
     * 产品风格描述
     */
    private String styleDesc;

    public Style() {
    }

    public Style(Integer styleId, String styleName, String styleDesc) {
        this.styleId = styleId;
        this.styleName = styleName;
        this.styleDesc = styleDesc;
    }

    @Override
    public String toString() {
        return "Style{" +
                "styleId=" + styleId +
                ", styleName='" + styleName + '\'' +
                ", styleDesc='" + styleDesc + '\'' +
                '}';
    }

    public Integer getStyleId() {
        return styleId;
    }

    public void setStyleId(Integer styleId) {
        this.styleId = styleId;
    }

    public String getStyleName() {
        return styleName;
    }

    public void setStyleName(String styleName) {
        this.styleName = styleName;
    }

    public String getStyleDesc() {
        return styleDesc;
    }

    public void setStyleDesc(String styleDesc) {
        this.styleDesc = styleDesc;
    }
}
